package org.snia.cdmi.model;

import java.util.Date;

public class BaseDataObject {
    private static final long serialVersionUID = -8646831898339939580L;

    /** 容器的名称 */
    private String name = null;

    /** 创建时间 */
    private Date creationDate = null;

    /** 授权码 */
    private String accessKey = null;
    
    /** 对应的文件UUID */
    private String uuid = null;
	
    /** 对象的状态 */
    private int status;
	
	/** 数据的存储类型 */
	private StoreClass storeClass;
	
	
	
    /**
     * Create a container without any name specified
     */
    public BaseDataObject() {}

    /**
     * Create a container with a name. All containers in system share a single namespace,
     * so choose a unique name for your container.
     *
     * @param name 存储容器的名称
     *            
     */
    public BaseDataObject(String name) {
        this.name = name;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getUuid() {
		return uuid;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param storeClass the storeClass to set
	 */
	public void setStoreClass(StoreClass storeClass) {
		this.storeClass = storeClass;
	}

	/**
	 * @return the storeClass
	 */
	public StoreClass getStoreClass() {
		return storeClass;
	}
}
